const giftImages = {
  'hair_clasp': require('../assets/img/ring.jpg'),
  'zhijin': require('../assets/img/paper.jpg'),
  'lajidai': require('../assets/img/bag.jpg'),
  'zhijin_2': require('../assets/img/paper2.jpg'),
  'lajidai_2': require('../assets/img/bag2.jpg')
}

export function getGiftImage (resource) {
  if (location.host === 'www.yingxiaolipin.com' && resource === 'Accessory') {
    return giftImages['hair_clasp']
  } else {
    return giftImages[resource] || require('../assets/img/ring.jpg')
  }
}

// export const YYBIDS = {
//   'www.28liwu.com': '3059654772',
//   'www.yingxiaolipin.com': '3043234088',
//   'www.51faliwu.com': '3082632927'
// }
export function transtypeDescription (type) {
  if (type === 'DEPOSIT_ON_LINE') {
    return '支付宝充值'
  } else if (type === 'DEPOSIT_ADJUST_IN') {
    return '调帐增加'
  } else if (type === 'DEPOSIT_ADJUST_IN') {
    return '调帐扣出'
  } else {
    return type
  }
}
